<?php
$time1=time();
sleep(10);
$time2=time();
$time= $time2-$time1;
echo $time;